package com.metagurukul.metaspace.models.beans;


/**
 * @author ritesh
 * created date : 5/10/2012
 */
public class UserLoginDetail {
	private int userId = -1;
	private String password = null;
	private String emailId = null;
	private int isBlocked = -1;
	
	/**
	 * @return userId
	 */
	public int getUserId() {
		return userId;
	}
	
	/**
	 * @param userId
	 */
	public void setUserId(int userId) {
		this.userId = userId;
	}
	
	/**
	 * @return password
	 */
	public String getPassword() {
		return password;
	}
	
	/**
	 * @param password
	 */
	public void setPassword(String password) {
		if(this.password != null && 50 < this.password.length()){
			throw new StringIndexOutOfBoundsException("status size too long");
		}
		this.password = password;
	}
	
	/**
	 * @return emailId
	 */
	public String getEmailId() {
		return emailId;
	}
	
	/**
	 * @param emailId
	 */
	public void setEmailId(String emailId) {
		if(this.emailId != null && 50 < this.emailId.length()){
			throw new StringIndexOutOfBoundsException("status size too long");
		}
		this.emailId = emailId;
	}
	
	/**
	 * @return isBlocked
	 */
	public int getisBlocked() {
		return isBlocked;
	}
	
	/**
	 * @param isBlocked
	 */
	public void setisBlocked(int isBlocked) {
		this.isBlocked = isBlocked;
	}
	
}
